import axios from 'axios';

export const instance = axios.create({
  baseURL: 'https://hm-crm.xahmyk.cn/',
});

export const CommonAreaCommonCustNamePhone = (params) => {
  return instance.get("/api/crm/json/CommonArea/Common/CustNamePhone",{
    params
  })
}

export const ReservationTempCustInfoIndex = (params) => {
  return instance.get("/api/crm/html/Reservation/TempCustInfo/Index", {
    params,
  });
}
export const FieldReceptionNoteGetRecs = (params) => {
  return instance.post("/api/crm/html/Field/ReceptionNote/GetRecs?table_el=table", params);
}
export const FormDataFieldReceptionNoteCreate = (params) => {
  return instance.get("/api/crm/form/Field/ReceptionNote/Create", {
    params,
  });
}
export const ReservationTempCustInfoCreate = (params) => {
  return instance.post("/api/crm/json/Reservation/TempCustInfo/Create",params);
}
export const StoreFieldReceptionNoteCreate = (params) => {
  return instance.post("/api/crm/json/Field/ReceptionNote/Create",params);
}

export const FieldReceptionNoteIndex = (params) => {
  return instance.post("/api/crm/html/Field/ReceptionNote/Index",params);
}

export const CommonGetUserList = () => {
  return instance.get("/api/crm/userList");
}

export const CommonGetTempTypeList = () => {
  return instance.get("/api/crm/tempTypeList");
}

export const CommonGetMediumTypeList = () => {
  return instance.get("/api/crm/mediumTypeList");
}

